import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { DataComponent } from './data.component';

const routes: Routes = [
  {
    path: '',
    component: DataComponent,
    children: [
      {
        path: '',
        redirectTo: 'layer',
        pathMatch: 'full'
      },
      {
        path: 'layer',
        loadChildren: './layer-manager/layer-manager.module#LayerManagerModule',
        data: {
          name: '图层管理'
        }
      }
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class DataRoutingModule { }
